import { useWindowSize } from '@vant/use';
import { computed, provide } from 'vue';

export const useLargenScreen = (maxWidth = 450) => {
  const { width } = useWindowSize();
  const largenScreen = computed(() => width.value >= maxWidth);
  provide('largenScreen', largenScreen);

  return [largenScreen];
};
